﻿using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using YaAppoint.Response;

namespace YaAppoint.Rules
{
    public interface IRuleTemplateAppService:IApplicationService
    {
        /// <summary>
        /// 加载树形数据
        /// </summary>
        Task<BackJson> GetTreeDate(string? filerName);

        /// <summary>
        /// 新建目录
        /// </summary>
        Task<BackJson> CreateDirectory(RuleTemplateCreateDto dto);

        /// <summary>
        /// 删除目录
        /// </summary>
        Task<BackJson> DeleteDirectory(Guid id);


        /// <summary>
        /// 修改目录
        /// </summary>
        Task<BackJson> EditDirectory(RuleTemplateDto dto);

        /// <summary>
        /// 新建模板
        /// </summary>
        Task<BackJson> CreateTemplate(RuleTemplateCreateDto dto);

        /// <summary>
        /// 修改模板
        /// </summary>
        Task<BackJson> EditTemplate(RuleTemplateDto dto);

        /// <summary>
        /// 删除模板
        /// </summary>
        Task<BackJson> DeleteTemplate(Guid id);


        /// <summary>
        /// 加载详情
        /// </summary>
        Task<BackJson> LoadDetail(Guid id);

    }
}
